﻿using System;

namespace MessagePack.Formatters
{
	// Token: 0x0200003A RID: 58
	public class UInt32Formatter : IMessagePackFormatter<uint>
	{
		// Token: 0x060000D7 RID: 215 RVA: 0x000043A3 File Offset: 0x000027A3
		private UInt32Formatter()
		{
		}

		// Token: 0x060000D8 RID: 216 RVA: 0x000043AB File Offset: 0x000027AB
		public int Serialize(ref byte[] bytes, int offset, uint value, IFormatterResolver formatterResolver)
		{
			return MessagePackBinary.WriteUInt32(ref bytes, offset, value);
		}

		// Token: 0x060000D9 RID: 217 RVA: 0x000043B5 File Offset: 0x000027B5
		public uint Deserialize(byte[] bytes, int offset, IFormatterResolver formatterResolver, out int readSize)
		{
			return MessagePackBinary.ReadUInt32(bytes, offset, out readSize);
		}

		// Token: 0x0400002E RID: 46
		public static readonly UInt32Formatter Instance = new UInt32Formatter();
	}
}
